/*
 * @Description: 强绑弹窗初始化JS
 * @Author: zhenqiang.hong
 * @Date: 2019-12-06 20:44:36
 * @Last Modified by: zhenqiang.hong
 * @Last Modified time: 2019-12-06 22:28:50
 */

import BindMask from './BindMask.vue'
import Vue from 'vue'

var BindMaskConstructor = Vue.extend(BindMask)
var instance

var BindMaskJS = {
  /**
   *
   */
  show: function () {
    if (!instance) {
      instance = new BindMaskConstructor({
        el: document.createElement('div')
      })
    }
    document.body.appendChild(instance.$el)
    instance.show()
  }
}

export default BindMaskJS
